package com.ekeyman.securecreditlib.dao;

import java.util.List;

import com.ekeyman.securecredit.dto.CardTransactionGrid;
import com.ekeyman.securecreditlib.domain.CardTransaction;
import com.ekeymanlib.dto.SearchFilter;

public interface CardTransactionDao {
	public void saveCardTransaction(long creditCardId, CardTransaction cardTransaction);
	public CardTransaction findCardTransaction(String vendorCode);
	public void deleteCardTransaction(long id);
	public List<CardTransaction> listCardTransactions(List<SearchFilter> searchFilters, 
			String sortIndex, String sortOrder, int firstResult, int maxResults);
	public long getCardTransactionCount(List<SearchFilter> searchFilters);
	public CardTransaction findCardTransaction(long id);
	public void updateCardTransaction(CardTransactionGrid cardTransactionGrid);
	public long getCreditCardTransactionCount(String creditCardId, List<SearchFilter> searchFilters);
	public List<CardTransaction> listCreditCardTransactions(String creditCardId, List<SearchFilter> searchFilters, 
			String sortIndex, String sortOrder, int firstResult, int maxResults);
}
